const { resolve } = require('./MyPromise');
const MyPromise = require('./MyPromise');


let p1 = new MyPromise((resolve, reject) => {
  setTimeout(() => {
    console.log('time out')
    resolve(100)
  }, 1000);
})

p1.then(res => {
  console.log('into then')
  console.log('res', res)
})